﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MISAPP.MISInterface;



public partial class View_CIB_CIB_005 : ViewMatrix
{
    protected void Page_Load(object sender, EventArgs e)
    {
        limit();
        Title = "兩個時間點資料異動";
        criteriaList = new string[] { "Start", "Criteria", "FtpRate","Rate"
            ,"Money"};
        serviceName = "MISAPP.Classify.Service.Service_CIB005";
        if (!IsPostBack)
        {
            FillCriteria("GetCriteriaData", "SetData");
        }
    }

    protected void btn_Execute_Click(object sender, EventArgs e)
    {
        execute();
        Server.Transfer("CIB005_1.aspx");
    }

    protected void execute()
    {
        string money = "1";

        if (chkMoney.Checked == true)
        {
            Int32 iMoney = 100000000;
            money = txtThanMoney.Text.Length == 0 ? iMoney.ToString()
                : Convert.ToString(Convert.ToInt16(txtThanMoney.Text) * iMoney);
        }

        Session["Start"] = rdoStart.Checked ? true : false;
        Session["Criteria"] = GetSelectCLB();
        Session["FtpRate"] = txtThanFTPRate.Text;
        Session["Rate"] = txtThanRate.Text;
        Session["Money"] = money;
        Session["PageSize"] = ddlGVPageSizeSelect1.GetSelectPageSize();

        
    }
}
